<?php
/**
 * Created by PhpStorm.
 * Date: 2016/7/9
 * Time: 13:49
 */


class Involved_AdProductModel extends BaseModel{

    protected $table = 'ad_product';

   public function AdProduct($where){

       return DB::table($this->table)
           ->select('product_id')
           ->where('where',$where)
           ->orderBy('ad_id','desc')
           ->groupBy('product_id')
           ->skip(0)->take(4)
           ->get();
   }

}